package com.pine.common.convertor;

import java.util.List;

/**
 * 实体转换器
 *
 * @author pine manage
 * @since 2024-08-09
 */
public interface EntityConvertor<Entity, EntityBo> {

    Entity entityBoToEntity(EntityBo entityBo);

    EntityBo entityToEntityBo(Entity entity);

    List<Entity> entityBoToEntity(List<EntityBo> entityBo);

    List<EntityBo> entityToEntityBo(List<Entity> entity);
}
